package com.hhxy.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author ghp
 * @date 2023/4/25
 * @title
 * @description 用于接收用户登录时从前端传递过来的参数
 */
@ApiModel(description = "用户登录信息传输类")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserLoginDto implements Serializable {

    private static final long serialVersionUID = -7440469485901108203L;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message = "用户名不能为空")
    private String userName;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", required = true)
    @NotBlank(message = "密码不能为空")
    private String password;
}
